/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.blog.city.checkthedep.managedbeans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Breath
 */
@ManagedBean
@RequestScoped
public class HandleRequests {

    private String menu = "browseArticles";

    /**
     * 
     * @return
     */
    public String getMenu() {
        return menu;
    }

    /**
     * 
     * @param menu
     */
    public void setMenu(String menu) {
        this.menu = menu;
    }

    /**
     * 
     */
    public void browseArticles() {
        setMenu("browseArticles");
    }

    /**
     * 
     */
    public void search() {
        setMenu("search");
    }

    /**
     * 
     */
    public void viewLatestArticles() {
        setMenu("viewLatestArticles");
    }

    /**
     * 
     */
    public void viewLatestComments() {
        setMenu("viewLatestComments");
    }

    /**
     * 
     */
    public void browseArticlesByAuthor() {
        setMenu("browseByAuthor");
    }

    /**
     * 
     */
    public void browseArticlesByMonth() {
        setMenu("browseByMonth");
    }

    /**
     * 
     */
    public void browseArticlesByCategory() {
        setMenu("browseByCategory");
    }
    
    /**
     * 
     */
    public void browseMine(){
        setMenu("testart");
    }
}
